#include "headfiles.h"

using namespace std;

int main(int argc, char **argv) {
    if (argc != 3) {
        cout << "Usage: " << argv[0] << " string nrow" << endl;
        return 0;
    }

    string str(argv[1]);
    int row_num = atoi(argv[2]);

    string res = zigZagConvert(str, row_num);

    cout << "out is:" << endl;
    cout << res << endl;

    return 0;
}
